package com.atguigu.hello.service;

import com.atguigu.hello.bean.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author 杨林
 * @create 2023-09-08 9:37 星期五
 * description:
 */

/**
 * 默认不要放入容器中，用户需要使用时，通过自动配置导入即可
 */
public class HelloService {
    
    @Autowired
    HelloProperties helloProperties;
    
    public String sayHello(String userName){
        return helloProperties.getPrefix() + ":" + userName + ":" + helloProperties.getSuffix();
    }
    
}
